Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor "super dev compile" into "super compile" and "super db compile" #5366

Merged
merged 4 commits into from
Oct 25, 2024

Conversation

mccanne
Copy link
Collaborator

@mccanne mccanne commented Oct 24, 2024

This commit reparents the "super dev compile" command under the top-level "super" command and creates a parallel command "super db compile". This makes it much clearer as to when you are compiling a query for a lake vs a file system.

We also changed the compile commands to take a single query argument instead of concatenating multiple arguments. Also, the command options are a little different: you now say "-dag" if you want the DAG output and get the AST output otherwise.

There were some inconsitencies in how commands were parented so we added charm.NoRun() and fixed up the command hierarchy linkages. The invariant should now be that every internal command properly appears in the command hierarchy and NoRun() is invoked by the Run() method of an interior command to give proper help.

The command-line help has also been updated.

This commit reparents the "super dev compile" command under the top-level
"super" command and creates a parallel command "super db compile".
This makes it much clearer as to when you are compiling a query for
a lake vs a file system.

We also changed the compile commands to take a single query argument
instead of concatenating multiple arguments.  Also, the command options
are a little different: you now say "-dag" if you want the DAG output
and get the AST output otherwise.

There were some inconsitencies in how commands were parented so
we added charm.NoRun() and fixed up the command hierarchy linkages.
The invariant should now be that every internal command properly appears
in the command hierarchy and NoRun() is invoked by the Run() method
of an interior command to give proper help.

The command-line help has also been updated.
@mccanne mccanne requested review from mattnibs and nwt October 24, 2024 21:25
@mccanne mccanne changed the title nrefactor "super dev compile" into "super compile" and "super db compile" refactor "super dev compile" into "super compile" and "super db compile" Oct 24, 2024
cmd/super/compile/command.go Outdated Show resolved Hide resolved
cmd/super/compile/shared.go Outdated Show resolved Hide resolved
compiler/ztests/from-error.yaml Show resolved Hide resolved
@mccanne mccanne merged commit 32552bc into main Oct 25, 2024
4 checks passed
@mccanne mccanne deleted the super-compile branch October 25, 2024 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants